import request from '@/utils/request'

// 查询看诊记录列表
export function listRunning(query) {
  return request({
    url: '/erp/running/list',
    method: 'get',
    params: query,
  })
}

// 查询看诊记录详细
export function getRunning(id) {
  return request({
    url: '/erp/running/' + id,
    method: 'get',
  })
}

// 新增看诊记录
export function addRunning(data) {
  return request({
    url: '/erp/running',
    method: 'post',
    data: data,
  })
}

// 修改看诊记录
export function updateRunning(data) {
  return request({
    url: '/erp/running',
    method: 'put',
    data: data,
  })
}

// 删除看诊记录
export function delRunning(id) {
  return request({
    url: '/erp/running/' + id,
    method: 'delete',
  })
}

// 导出看诊记录
export function exportRunning(query) {
  return request({
    url: '/erp/running/export',
    method: 'get',
    params: query,
  })
}

// 自定义看诊记录查询
export function listRunningAll(data) {
  return request({
    url: '/erp/running/extend/list',
    method: 'post',
    data,
  })
}
